<?php
namespace app\admin\validate;


use think\Validate;

class AddTemp extends Validate
{
    protected $rule = [
        'temp_price'    =>  'require',
        'temp_link'     =>  'require',
        //'temp_img'      =>  'require',
    ];

    protected $message = [
        'temp_price.require'    =>  '价格不能为空',
        'temp_link.require'     =>  '链接不能为空',
        //'temp_img.require'      =>  '图片不能为空',
    ];
}